package com.fili.gui.components.date_time;

import javax.swing.*;
import java.util.Date;
import java.util.Calendar;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Oct 29, 2006
 * Time: 12:57:56 PM
 */
public class TimeChooser extends JSpinner
{
    public TimeChooser()
    {
        Date d1,d2,d3;
        Calendar c = Calendar.getInstance();
        d1=c.getTime();
        c.add(Calendar.YEAR, -100);
        d2 = c.getTime();
        c.add(Calendar.YEAR, 200);
        d3 = c.getTime();
        setModel(new SpinnerDateModel(d1,d2,d3, Calendar.HOUR));
        setEditor(new JSpinner.DateEditor(this, "HH:mm"));
    }
    
}
